{% extends 'front/user_base.html' %}
{% from 'front/_macros.html' import pagination_widget as render_page %}
{% block css %}
    <style>
    .warning-msg>a{
        font-size: 1.3rem;
        color: #cb773b;
        display: block;
        text-align: center;
        margin-top: 1rem;
    }
    .warning-msg >a> span{
        color: #21cb2a;
    }
    .warning-msg >a> span#percent{
        color:#0a53be;
    }
    </style>
{% endblock %}
{% block content %}
<div class="warning-msg">
    <a href="javascript:location.href='{{ tmss.url }}';">
        {{tmss.msg |safe}}(<span id="percent">10</span>秒后跳转至个人中心，点击马上跳转）
    </a>
</div>
<script>
    let bar= 10;
    function count(){
        bar=bar-1 ;
        document.getElementById("percent").innerHTML=bar;
        if (bar>0){
            setTimeout("count()",1000);
        }else{
            history.go(-1)
        }
    }
    count() ;
</script>
{% endblock %}